package com.dx.financehy.modules.system.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

@ApiModel(description = "新增用户入参dto")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AddUserDTO {

    @ApiModelProperty(value = "用户名")
    private String username;

    @ApiModelProperty(value = "密码")
    @NotBlank(message = "密码不能为空")
    private String password;

    @ApiModelProperty(value = "用户类型：1-admin（管理员），2-business（商家），3-tourist（游客）")
    private Integer userType;

    @ApiModelProperty(value = "姓名")
    private String name;

    @ApiModelProperty(value = "微信号")
    private String wxOpenId;

    @ApiModelProperty(value = "商家id")
    private String merchantId;
}
